Help > Reference > Macros > Tab object > Count property

Count property

This property returns the number of results, found for the search that is active in the tab. If you intended to enumerate all documents in the search results, the preferred method is to use one of the Fetch methods, as they are optimized for performance and allow you or the user to control the subset of information that is enumerated.

Member of

Tab

Type

Read-Only Integer Property

The following example uses this property to enumerate the documents collection. It is for demonstration purposes only, consider using FetchAll instead.

Example

Set FSO = CreateObject("Scripting.FileSystemObject")
Set Output = FSO.CreateTextFile("c:\output.txt", True)
For I = 0 To App.ActiveTab.Count-1
  Output.WriteLine App.ActiveTab.Item(I).AbsoluteFilename
Next

See Also

Macro Object Model

Tab